package org.jsea.meta.api.bean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * --.
 * *
 * author   Jiang.hy
 * create   2022-06-27
 */
public interface MetaApiInterceptor {

    default void select(MetaApiDefinitionBean bean, HttpServletRequest request, HttpServletResponse response) {
    }

    default void update(MetaApiDefinitionBean bean, HttpServletRequest request, HttpServletResponse response) {
    }

    default void delete(MetaApiDefinitionBean bean, HttpServletRequest request, HttpServletResponse response) {
    }

    default void insert(MetaApiDefinitionBean bean, HttpServletRequest request, HttpServletResponse response, List<Map<String, Object>> datas) {
    }
}
